package com.py.credit.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.KhzlDao;
import com.py.credit.service.KhzlService;
import com.py.framework.core.common.Page;

@Service
public class KhzlServiceImpl implements KhzlService {
	
	@Autowired
	private KhzlDao khzlDao;

	@Override
	public List<Map<String, Object>> getListForPage(String zlmc, Page page, Long deptId, Long userID) {
		return khzlDao.getKhzlsListForPage(zlmc,page,deptId,userID);
	}

	@Override
	public void updateKhzl(String id, String type, String condition) {
		khzlDao.updateKhzl(id,type,condition);
		
	}

	@Override
	public void addKhzl(String batchId, long deptId, String userName, String fileName, String path,long userId) {
		khzlDao.addKhzl(batchId,deptId,userName,fileName,path,userId);
		
	}

}
